import { createStore, applyMiddleware } from "redux";
import { createLogger } from "redux-logger";
import reducer from "../reducer";
import thunk from "redux-thunk";

const logger = createLogger();

const enhancer = applyMiddleware(thunk, logger);
const store = createStore(reducer, enhancer);
export default store;
